<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Log extends CI_Controller {
	function __construct(){
		parent::__construct();
		$this->load->library('Huashang/user');
		$this->user->checkLogin();
	}
	//载入会员列表
	public function index(){
		$data['type']=$this->uri->segment(3);
	    $data['auth']=explode(',', $this->input->get('auth'));
		$this->load->view('log/index',$data);
	}
	//获取会员列表
	// public function getlist(){
	// 	$arr=array('total'=>10000,'rows'=>array(
	// 		array('t1'=>'kgbet.cc', 't2'=>'张三',
	// 		't3'=>'eprgdip','t4'=>'未分层','t5'=>'555555.34')
			
	// 	));
	//     echo json_encode($arr);
	// }
	//保存会员列表
	public function save(){
		$id = $this -> input -> post('id');
		if($this -> user -> save($id,$row) && $this -> admin_sh -> add($sh)){
			echo '{"status":"OK","msg":"执行成功"}';
		}else{
			echo '{"status":"ERROR","msg":"执行失败"}';
		}
	}
	//修改会员
	public function edituser(){
		$data['rs']=array_pop($this->user->update());
		$this->load->view('member/edituser',$data);
	}
	//获取分层信息
	public function getfc(){
		$this->load->view('member/fcinfo');
	}

	//基本资料设定
	public function basic_info(){
		$this->load->view('member/basic_info');
	}

	//删除会员
	public function deluser(){
		$this->user->remove();
	}


}